﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="SuaLK.aspx.cs" Inherits="admin_SuaLK" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:102%;">
        <tr>
            <td width="30%">
            <asp:Label ID="Label8" runat="server" Text="Mã Linh Kiện"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtMaLinhKien" runat="server" Width="211px" Enabled="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td width="30%">
            <asp:Label ID="Label1" runat="server" Text="Tên linh kiện"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTenLK" runat="server" Width="210px"></asp:TextBox>
            (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtTenLK" ErrorMessage="Nhập tên linh kiện!"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="Giá bán"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtGiaBan" runat="server" Width="211px"></asp:TextBox>
            (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtGiaBan" ErrorMessage="Nhập giá bán!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator3" runat="server" 
                ControlToValidate="txtGiaBan" ErrorMessage="Giá bán sai!" 
                MaximumValue="10000000" MinimumValue="100" Type="Double"></asp:RangeValidator></td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label5" runat="server" Text="Hình ảnh"></asp:Label>
        </td>
        <td>
            <asp:FileUpload ID="UpLoadHinhAnh" runat="server" Width="211px" />
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label6" runat="server" Text="Số lượng"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtSoLuong" runat="server" Width="212px"></asp:TextBox>
            (*)<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtSoLuong" ErrorMessage="Nhập số lượng!"></asp:RequiredFieldValidator><asp:RangeValidator ID="RangeValidator2" runat="server" 
                ControlToValidate="txtSoLuong" ErrorMessage="Số lượng không hợp lệ!" 
                MaximumValue="10000000" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label7" runat="server" Text="Loại LK"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlLoaiLK" runat="server" Width="113px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td>
            <asp:Button ID="btSave" runat="server" Text="Save" Width="86px" 
                onclick="btSave_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btCancel" runat="server" Text="Cancel" 
                onclick="btCancel_Click" />
        </td>
        </tr>
    </table>
    </form>
</asp:Content>

